package com.term.domain.enums;

/**
 * Created by Administrator on 2017/1/4.
 */
public enum UserTypeEnums implements BaseEnum<UserTypeEnums, String> {

    /** 普通用户. */
    USER( "USER", "普通用户" ),

    /** 商家用户. */
    SELLER( "SELLER", "商家用户" )
    ;

    private final String value;
    private final String displayName;
    private static java.util.Map<String, UserTypeEnums> valueMap = new java.util.HashMap<String, UserTypeEnums>();

    static {
        for ( UserTypeEnums e : UserTypeEnums.values() ) {
            valueMap.put( e.value, e );
        }
    }

    UserTypeEnums( String value, String displayName ) {
        this.value = value;
        this.displayName = displayName;
    }

    @Override
    public UserTypeEnums getEnum(String value ) {
        return valueMap.get( value );
    }

    @Override
    public java.util.Map<String, UserTypeEnums> getAllValueMap() {
        return valueMap;
    }

    @Override
    public String getValue() {
        return value;
    }

    @Override
    public String getDisplayName() {
        return displayName;
    }
}
